import request from '@/utils/request'

/**
 * 获取补件信息
 * @param {queryString} data data
 */
export function getPBillInfo(data) {
  return request({
    url: `/call-center/api/v1/pbill/page`,
    method: 'POST',
    params: data
  })
}

/**
 * 根据补件单号查询工单列表
 * @param {string} disCode 经销商编码
 * @param {string} pbCodes 补件单号，逗号分隔批量查询
 */
export function getPBillList({ disCode, pbCodes }) {
  return request({
    url: `/call-center/api/v1/pbill/queryInfo`,
    method: 'POST',
    params: { disCode, pbCodes }
  })
}
